
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { HtxxEntity } from './entities/htxxentity';

import { HtxxProxy } from './htxxproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/basicdata/basicdata/v1.0/htlx_frm',
    entityType: HtxxEntity
})
export class HtxxRepository extends BefRepository<HtxxEntity> {
    public name = 'HtxxRepository';

    public proxy: HtxxProxy;
    public paginationInfo = {
        HtxxEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(HtxxProxy, null);
    }
}